<div id="credit-results">  <% artists.each do |artist| %>    <p>      <%=h artist.name %>      <%= link_to_function 'Select', "show_form(\"#{artist.name}\", \"#{artist.id}\", \"false\")" %>      <hr />	</p>  <% end %>  <p>    <%= (artists.empty?) ? "No artists were found with that name." : "Not what you were looking for?" %>    Create an entry for <strong><%=h params[:search][:name_like] %></strong>?    <%= link_to_function 'Select', "show_form(\"#{params[:search][:name_like]}\", \"#{params[:search][:name_like]}\", \"true\")" %>  </p></div><div id="credit-form" style="display: none">  <% form_for :song_credit, :url => { :action => :create } do |f| %>    <%= f.hidden_field :artist %>    <%= f.label :name %><br />      <%= f.label :role %>    <%= f.select :role, SongCredit::ROLES %><br />    <%= f.label :details %>    <%= f.text_field :details %>    <%= f.submit "Add Credit" %>  <% end %></div>